package cn.ytxy.double_system_data_visualization_demo.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;

/**
 * @ClassName UserSaveParam
 * @Description TODO
 * @Author renhong~Deng
 * @Date 2025/4/29 14:09
 * @Version 1.0
 */
@Data
public class UserSaveParam {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "学员姓名")
    @NotBlank(message = "姓名不能为空")
    @Size(min = 1, max = 50, message = "姓名长度应在1到50个字符之间")
    private String username;

    @ApiModelProperty(value = "所属部门")
    @NotBlank(message = "所属部门不能为空")
    @Size(min = 1, max = 50, message = "所属部门长度应在1到50个字符之间")
    private String departmentName;
}